package com.feibiao.computer;

public class TwoOperandComputeFactory extends AbstractFactory {

    @Override
    public  TwoOperandCompute getTwoOperandCompute(String operator) {
        TwoOperandCompute com = null;
        switch (operator){
            case "+" :com = new ADD();break;
            case "-" :com = new Sub();break;
            case "*" :com = new Mul();break;
            case "/" :com = new Div();break;
            case "^" :com = new Involution();break;
        }
        return com;
    }

    @Override
    public OneOperandCompute getOneOperandCompute(String operator) {
        return null;
    }

}
